process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';

process.on('unhandledRejection', err => {
    throw err;
});
const webpack = require('webpack');
const config = require("../webpack.config")
webpack(config, (err, stats) => {
    if (err || stats.hasErrors()) {
        console.log(err)
    }
    console.log("处理完成")
    console.log(stats.toString({
        colors: true,
        chunks: false,
    }))
})
